home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_twin1.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  598 b   |  34 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_TWIN1
  5.  
  6. creation make
  7.    
  8. feature 
  9.    
  10.    make is
  11.       local
  12.      i: INTEGER;
  13.       do
  14.      is_true(1 = (1).twin);
  15.      i := (2).twin;
  16.      is_true(i = 2);
  17.       end;
  18.    
  19.    is_true(b: BOOLEAN) is
  20.       do
  21.      cpt := cpt + 1;
  22.      if not b then
  23.         std_output.put_string("TEST_TWIN1: ERROR Test # ");
  24.         std_output.put_integer(cpt);
  25.         std_output.put_string("%N");
  26.      else
  27.         -- std_output.put_string("Yes%N");
  28.      end;
  29.       end;
  30.    
  31.    cpt: INTEGER;
  32.    
  33. end -- TEST_TWIN1
  34.